package com.libraryManage.service;

import com.libraryManage.commons.utils.ResponseEntity;
import com.libraryManage.vo.BookManageVo;

import java.util.List;

/**
 * @CreateDate 2021-01-26
 * @Author yufang
 * 图书管理接口
 */
public interface BookManageService {

    /**
     * 获取所有图书
     * @param vo
     * @return
     */
    ResponseEntity<List<BookManageVo>> getList(BookManageVo vo);

    /**
     * 图书上架or下架
     * @param bookId
     * @param bookState
     * @return
     */
    ResponseEntity<List<BookManageVo>> updateBookState(int bookId, int bookState);

    /**
     * 更新图书基本信息
     * @param vo
     * @return
     */
    ResponseEntity<List<BookManageVo>> updateBookData(BookManageVo vo);

    /**
     * 获取热门图书
     * @return
     */
    ResponseEntity<List<BookManageVo>> getHotBook();

    /**
     * 更新热门书籍
     * @param hotState
     * @param bookId
     * @return
     */
    ResponseEntity<List<BookManageVo>> updateHotBook(int hotState, int bookId);
}
